import request from './index';
export function fetchList(): Promise<RDD<{ total: number; data: any[] }>> {
    return request.post('/getRecommendBook', {
        params: {
            encode: true,
        },
    });
}
export function fetchBookList(params: {
    book_name?: string;
    cate_id?: string;
    publish_date?: string;
}): Promise<RD> {
    return request.post('/setRecommendBookList', {
        data: {
            ...params,
        },
    });
}
export function batchExtensionBook(data: { isbns: string }): Promise<RD> {
    return request.post('/setRecommendBook', {
        data: {
            isbns: data.isbns,
        },
    });
}
export function fetchPublishingHouseCate(): Promise<RD> {
    return request.post('/getPublishingHouseCate', {
        params: {
            encode: true,
        },
    });
}
